#include <iostream>
#include "Shape.h"
#include "Shape.cpp"
#include "Triangle.h"
#include "Triangle.cpp"
#include "Rectangle.h"
#include "Rectangle.cpp"
#include "Square.h"
#include "Square.cpp"
#include "Circle.h"
#include "Circle.cpp"

using namespace std;

int main (){
    Shape *a0, a1;
    Triangle a2 ( 3, 4, 5 );
    Rectangle a3 ( 3, 4 );
    Square a4 ( 5 );
    Circle a5 ( 4 );
	a0 = &a1;
    cout << a0->getArea () << endl;
    cout << a0->getPerimeter () << endl;
    a0->draw ();
    cout << endl;
	a0 = &a2;
	cout << a0->getArea () << endl;
    cout << a0->getPerimeter () << endl;
    a0->draw ();
    cout << endl;
	a0 = &a3;
	cout << a0->getArea () << endl;
    cout << a0->getPerimeter () << endl;
    a0->draw ();
    cout << endl;
	a0 = &a4;
	cout << a0->getArea () << endl;
    cout << a0->getPerimeter () << endl;
    a0->draw ();
    cout << endl;
	a0 = &a5;
	cout << a0->getArea () << endl;
    cout << a0->getPerimeter () << endl;
    a0->draw ();
    cout << endl;
    system ("pause");
    return 0;
}
